#include <QWidget>
#include "ui_mastersettings.h"
#include "../core/aprcfg.h"

class QPushButton;
class QLabel;
class QComboBox;
class QCheckBox;

class MasterConfigForm : public QWidget
{
	Q_OBJECT
public:
	MasterConfigForm(QWidget *parent = 0);
	~MasterConfigForm();

	bool PrepareHueList();

private slots:
	void MasterTypeChanged(const QString &item_info);
	void FormShouldReturn();
	void StartMasterMeasure();
	void EditSingleValue();
	void EditMultiValue();

private:
	void SaveConfigToProgram();

	Ui_MasterSettings ui_;

	int calb_no_;		// 保存当前Item的类型,0:HUE, 1:VL, 2:DLM
	int chn_no_;		// 当前item的channel
	citem_t citem_;		// 光量项目的索引表
	int item_no_;		// 当前光量项目在kinds[0]中的索引,从1开始计数

	ushort ref_vl_range_code_;
	ushort ref_bias_range_code_;
};
